//
//  CXShopFoodModel.m
//  Meituan_OC
//
//  Created by Tony on 16/9/27.
//  Copyright © 2016年 Tony. All rights reserved.
//

#import "CXShopFoodModel.h"

@implementation CXShopFoodModel


+(NSArray<CXShopFoodModel *> *)dataArrayWithArr:(NSArray *)arr {
    NSMutableArray * mArr = [NSMutableArray array];
    for (NSDictionary * dict in arr) {
        CXShopFoodModel * model = [[CXShopFoodModel alloc] init];
        [model setValuesForKeysWithDictionary:dict];
        [mArr addObject:model];
    }
    return mArr.copy;
}


-(void)setValue:(id)value forKey:(NSString *)key {
    if ([key isEqualToString:@"description"]) {
        [super setValue:value forKey:@"desc"];
    } else {
        [super setValue:value forKey:key];
    }
}

-(void)setValue:(id)value forUndefinedKey:(NSString *)key {  }

@end
